import BasicLayout from "@/layouts/basic-layout";

const meta = {
    auth: true,
    keepAlive: true,
};

const pre = "/business/dashboard/";

export default {
    path: "/business/dashboard",
    name: "dashboard",
    // redirect: {
    //     name: `visit`,
    // },
    meta,
    component: BasicLayout,
    children: [{
            path: "todoList/visit",
            name: `visit`,
            meta: {
                ...meta,
                title: "待办事项",
            },
            component: () =>
                import ("@/pages/dashboard/todoList/visit"),
        },
        {
            path: "todoList/allocations",
            name: `allocations`,
            meta: {
                ...meta,
                title: "分配待办",
            },
            component: () =>
                import ("@/pages/dashboard/todoList/allocations"),
        },
        {
            path: "myReport",
            name: `myReport`,
            meta: {
                ...meta,
                title: "我的报表",
            },
            component: () =>
                import ("@/pages/dashboard/myReport"),
        },
        {
            path: "ranking",
            name: `ranking`,
            meta: {
                ...meta,
                title: "排行榜",
            },
            component: () =>
                import ("@/pages/dashboard/ranking"),
        },
        {
            path: "tasks",
            name: `tasks`,
            meta: {
                ...meta,
                title: "计划任务",
            },
            component: () =>
                import ("@/pages/tasks"),
        },
        {
            path: "improvePlan",
            name: `improvePlan`,
            meta: {
                ...meta,
                title: "提升计划",
            },
            component: () =>
                import ("@/pages/dashboard/improvePlan"),
        },
    ],
};